import scrapy
from . import dmSpider

# 定义 hanime1 Motion+Anime爬虫程式, scrapy crawl motionSpider -o motion.csv
class MotionspiderSpider(dmSpider.DmspiderSpider):
    name = "motionSpider"
    allowed_domains = ["hanime1.me"]

    debug_mode = False
    run_mode = "" # "<<TEST>>"
    title = "Motion+Anime"
    topic_name = "motion"
    start_url = 'https://hanime1.me/search?genre=Motion+Anime'
    list_selector = 'div.search-doujin-videos > a'
    image_selector = 'div.card-mobile-panel > div > img:nth-last-child(1)::attr(src)'

    # 静态指定爬虫页面（二选一）
    #start_urls = ['https://hanime1.me/search?genre=Motion+Anime&page=1']
